package java69.work720;

public class Vehicle {
    protected static int wheels;//车轮数
    protected static double weight;//车重

    public Vehicle() {
    }

    public Vehicle(int wheels, double weight) {
        this.wheels = wheels;
        this.weight = weight;
    }

    public int getWheels() {
        return wheels;
    }

    public void setWheels(int wheels) {
        this.wheels = wheels;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public void show(int a,double b ){
        setWheels(a);
        setWeight(b);
        System.out.println("车有"+getWheels()+"个轮子，重"+getWeight()+"kg");
    }
}
